import React from 'react'
import {useLocation} from "react-router-dom"
function Detail() {
    let location = useLocation()
    console.log(location);
  return (
    <div>
      {
          location.state.tit
      }
    </div>
  )
}

export default Detail